<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

// +--------------------------------------------------------------------------------------------------------------------
// | 目的: app 应用的路由表
// | 点评: 路由其实也是请求的一部分,属于请求接受到后的处理第一步
// |      本质是为了更灵活的控制后续响应的调用,也可以理解为调度发生器
// |
// +--------------------------------------------------------------------------------------------------------------------

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');

//Route::get('user/blog','user.blog/index');

// ===响应请求===
Route::get('response_hello/:name',function($name){
    return 'Hello,'.$name."!";
});
